/*这里放一些公共样式*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*给整个页面加上背景图*/
html, body {
    /*浏览器窗口和body元素一样高*/
    height: 100%;
}

body {
    background-image: url(../pic/gewen.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.nav {
    /*这里的尺寸之后设计稿都会有，不必纠结*/
    width: 100%;
    height: 50px;
    /*这里rgba可以设置透明度 a：alpha*/
    background-color: rgba(51, 51, 51, 0.4);
    color: white;

    /*导航栏内部内容是一行,需要flex布局*/
    display: flex;
    /*垂直居中*/
    align-items: center;
}

.nav img {
    width: 40px;
    height: 40px;
    border-radius: 50%;

    margin-left: 30px;
    margin-right: 10px;
}

.nav .spacer {
    width: 60%;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 0 10px;
    font-size: 20px;
}

.container {
    /*这里的版心高度指整个页面高度减去导航栏高度*/
    width: 1000px;
    height: calc(100% - 50px);

    /*两个栏水平居中*/
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
}

.container .left {
    height: 100%;
    width: 200px;
    border-radius: 5px;

}

.container .right {
    height: 100%;
    width: 795px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;

    /*给博客内容加上滚动条*/
    overflow: auto;
}

/*实现用户信息区的css代码*/
.card {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;

    /*这里的padding是为了让内部所有元素居中*/
    padding: 30px;
}

.card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
}

.card h3 {
    text-align: center;
    padding: 10px;
}

.card a {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 10px;
    color: #999;
}

.card .counter {
    display: flex;
    justify-content: space-around;
    padding: 5px;
}